package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

/**
 * @author wangxin
 * @version 1.0
 */
public interface PermissionDao {

    Set<Permission> findPermissionsByRoleId(Integer roleId);

    Page<Permission> selectByCondition(String queryString);

    void add(Permission permission);

    int findCountByPermissionId(Integer id);

    void deleteById(Integer id);

    Permission findById(Integer id);

    void edit(Permission permission);

    /**
     * 查询所有权限列表
     * @return
     */
    List<Permission> findAll();

}
